package com.whz.enuminterface;

/**
 * @Author: sinosoft
 * @Description: 定义操作类型扩展 求幂和求余
 * @Date: Create in 15:15 2021/5/17
 * @Modified By:
 */
//public enum ExtendedOperation implements Operation {
//    EXP() {
//        @Override
//        public double apply(double x, double y) {
//            return Math.pow(x, y);
//        }
//    },
//    REMAINDER() {
//        @Override
//        public double apply(double x, double y) {
//            return x % y;
//        }
//    };
//    private AbstractOperation operation;
//
//    ExtendedOperation(AbstractOperation operation) {
//        this.operation = operation;
//    }
//
//    @Override
//    public String toString() {
//        return operation.toString();
//    }
//}
